<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>更新</title>
</head>
<body>
<h2>更新操作</h2>
<form th:action="@{/update}" th:method="post">
    <table>
        <tr>
            <td><label>手机号</label></td>
            <td><input name="number" type="text" th:value="${phones.number}"></td>
        </tr>
        <tr>
            <td><label>运营商</label></td>
            <td><input name="type_name" type="text"  th:value="${phones.type_name}"></td>
        </tr>
        <tr>
            <td><label>备注</label></td>
            <td><input name="type_remark" type="text" th:value="${phones.type_remark}"></td>
        </tr>
        <!--id也要传过去，不过这里把id隐藏不显示在页面-->
        <input name="type_id" type="hidden" th:value="${phones.type_id}"/>
        <tr>
            <td> <button type="submit" >提交</button></td>
        </tr>

    </table>
</form>
</body>
</html>